package ccmouse.guice.v11.helloworlddemo;

import ccmouse.guice.v11.MyAppletV5;

public class StringWritingApplet implements MyAppletV5 {

    private MyDestinationV2 destination;
    private String outputString;

    public StringWritingApplet(MyDestinationV2 destination,
                               String outputString) {
        this.destination = destination;
        this.outputString = outputString;
    }

    private void writeString() {
        destination.write(outputString);
    }

    @Override
    public void run() {
        writeString();
    }
}
